package test;

import org.hibernate.Query;
import selcoursesys.dao.UserDAO;
import selcoursesys.dao.impl.UserDAOImpl;
import selcoursesys.entity.UserEntity;
import db.MyHibernateSessionFactory;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import selcoursesys.dao.SelectionDAO;
import selcoursesys.entity.SelectionEntity;

import javax.print.DocFlavor;
import java.util.List;
/**
 * Created by Lpbdz on 2017/4/7.
 */
public class test {
    public static void main(String[] args){
        Session session=MyHibernateSessionFactory.getSession();
        String hqll="select * from course,selection where stuid='2011001001' and course.courseid=selection.courseid.";
        Query queryq=session.createSQLQuery(hqll);

    }
}
